<?php
/**
 * Created by PhpStorm.
 * User: SongPeiLin
 * Date: 2018/10/9
 * Time: 10:05
 */

namespace app\admin\validate;


use think\Validate;

class MsgValidate extends  Validate
{
    protected $rule = [
        'dealunit' => 'require',
        'deal' => 'require',
        'id' => 'require',
    ];

    protected $message = [
        'deal.require' => '角色名称不能为空',
        'dealunit.require' => '角色名称不能为空',
        'id.require' => '角色名称不能为空',
    ];

    protected $scene = [
        'msgup' => ['deal','id'],
    ];
}
